package com.itcast.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itcast.admin.domain.CheckupGroup;
import com.itcast.admin.domain.request.GroupPageReqDTO;
import com.itcast.admin.domain.response.GroupPageResDTO;

import java.util.List;

/**
 * <p>
 * 体检组 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-11-04
 */
public interface CheckupGroupMapper extends BaseMapper<CheckupGroup> {

    List<GroupPageResDTO> groupPage(GroupPageReqDTO reqDTO);


    List<Integer> getSetmealIds(Integer groupId);

    void deleteGroupAtSetmeal(Integer groupId);

    List<Integer> getItemIdsBySetmealId(Integer setmealId);

    List<Integer> getGroupIdsBySetmealId(Integer id);

    List<Integer> getItemIdsBySetmealIdAndGroupId(Integer setmealId, Integer groupId);
}
